package com.hrprojectback.mapper;

import com.hrprojectback.dto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    Integer getUserCounts(@Param("username") String username, @Param("name") String name);

    List<User> getUser(@Param("username") String username, @Param("name") String name, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);

    int addUser(User user);

    User geteditUser(@Param("username") String username);

    int editUser(User user);

    int deleteUser(String username);

    int ShengXiao(String username);

    int YiShiXiAo(String username);

    int getStatus(String username);
}